<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="vue-box layui-fluid" style="display: block;">
    <div class="layui-card">
        <form class="layui-form" action="">
            <div class="c-panel">
                <div class="layui-card-header">基本信息</div>
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品名称<i class="icon-re">*</i></label>
                        <div class="layui-input-inline">
                            <input type="text" name="name" v-model="that.name" required lay-verify="required"
                                   placeholder="请输入" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品说明<i class="icon-re">*</i></label>
                        <div class="layui-input-inline">
                            <div class="layui-inline">
                                <input type="text" name="spack" v-model="that.spack" required lay-verify="required"
                                       placeholder="请输入" autocomplete="off"
                                       class="layui-textarea">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                            <label class="layui-form-label">价格<i class="icon-re">*</i></label>
                            <div class="layui-input-inline">
                                <div class="layui-inline">
                                    <input type="number" name="money" v-model="that.money" required lay-verify="required"
                                           placeholder="请输入" autocomplete="off"
                                           class="layui-input">
                                </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品轮播<i class="icon-re">*</i></label>
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <button type="button" class="layui-btn" id="upload">
                                    上传图片
                                </button>
                            </div>
                            <div class="layui-input-inline" v-for="(item,i) in that.image">
                                <img v-bind:src="item" style="width: 100px;margin: 0 auto">
                                <br>
                                <br>
                                <a @click="delNote(i)" type="button" class="layui-btn layui-btn-sm layui-btn-danger">
                                    删除
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">图文详情<i class="icon-re">*</i></label>
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <button type="button" class="layui-btn" id="uploadX">
                                    上传图片
                                </button>
                            </div>
                            <div class="layui-input-inline" v-for="(item,i) in that.note">
                                <img v-bind:src="item" style="width: 100px;margin: 0 auto">
                                <br>
                                <br>
                                <a @click="delNoteX(i)" type="button" class="layui-btn layui-btn-sm layui-btn-danger">
                                    删除
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
            <br>
        </form>
    </div>
</div>
<script type="text/javascript" th:src="@{/js/require.js}"></script>
<script type="text/javascript" th:src="@{/js/requireConfig.js}"></script>
<script type="text/javascript" th:src="@{/app/admin/shop/add.js}"></script>
</body>
</html>